#include "strategies/TurnThresholdKnockingStrategy.h"

bool TurnThresholdKnockingStrategy::decideKnock(CCardStack* hand, const GameState* gameState) {
    int currentHandValue = hand->Value();
    bool knock = (gameState->getCurrRound() > turnThreshold);
    if (knock) {
        decisionCertainty = 100 * (currentHandValue - 2) / 29;
    }
    else {
        decisionCertainty = 100 * (31 - currentHandValue) / 29;
    }
    return knock;
}
